{include file="public/header" /}
<link rel="stylesheet" href="/static/index/css/page/setting.css">
<body>
<div class="build-navbar" data-title="个人资料"></div>
<div class="main">

    <div class="photo flex flex-col justify-center items-center">
        <img src="{$user.photo}" alt="" class="layui-circle build-bindUploads"
             data-url="{:url('uploads/uploadImage')}"
             data-req="{:url('user/edit')}"
             data-name="photo"
        />
        <span class="text">点击头像可更换</span>
    </div>

    <div class="vss m-30">
        <div class="item flex items-center justify-between p-30">
            <div class="left flex items-center justify-center">
                <span class="text">昵称</span>
            </div>
            <div class="right" lay-url="{:url('user/edit')}?type=nickname" lay-event="jump">
                <span class="text">{$user.nickname}</span>
                <i class="layui-icon layui-icon-right gray"></i>
            </div>
        </div>
        <div class="item flex items-center justify-between p-30">
            <div class="left flex items-center justify-center">
                <span class="text">编号</span>
            </div>
            <div class="right">
                <span class="text">{$user.code}</span>

            </div>
        </div>
        <div class="item flex items-center justify-between p-30">
            <div class="left flex items-center justify-center">
                <span class="text">手机号</span>
            </div>
            <div class="right" lay-url="{:url('user/edit')}?type=mobile" lay-event="jump">
                <span class="text">{$user.mobile}</span>
                <i class="layui-icon layui-icon-right gray"></i>
            </div>
        </div>

        <div class="item flex items-center justify-between p-30">
            <div class="left flex items-center justify-center">
                <span class="text">推荐人</span>
            </div>
            <div class="right">
                <span class="text">{$user.parent_code ?? '-'}</span>
            </div>
        </div>
    </div>
</div>


</body>
{include file="public/footer"/}
</html>